import doctor from '@/router/doctor/doctor'
import request from '@/utils/request'

// 分页查询健康管理师数据
export const pageManagementAll = (pageNum , pageSize , management) => {
    return request({
        url: '/admin/doctors/managementController/pageManagementAll/' + pageNum + "/" + pageSize,
        method: 'get',
        params: management
    })
}
// 添加健康管理师
export const SaveProduct = management => {
    return request({
      url: `/admin/doctors/managementController/addManagement`,
      method: 'post',
      data: management,
    })
}

// 修改健康管理师信息
export const updateManagement = management => {
    return request({
      url: `/admin/doctors/managementController/updateManagement`,
      method: 'put',
      data: management,
    })
}

// 根据id删除健康管理师
export const deleteManagement = id => {
    return request({
      url: `/admin/doctors/managementController/deleteManagement/${id}`,
      method: 'get',
    })
  }